package com.woniuxy.service.impl;

import com.woniuxy.dao.DruidManagerDao;
import com.woniuxy.entity.User;
import com.woniuxy.service.FindUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class FindUserServiceImpl implements FindUserService {
    @Autowired
    private DruidManagerDao druidManagerDao;

    public void setDruidManagerDao(DruidManagerDao druidManagerDao) {
        this.druidManagerDao = druidManagerDao;
    }

    @Override
    public List<User> findAll() {
        return druidManagerDao.findAll();
    }
}
